<?php
//
// 服务响应接口
//
class Controller_API_Service extends Controller
{
    public function __construct ($req, $res)
    {
        parent::__construct($req, $res);
    }

    public function action_checkUpdate ()
    {
        $config = Kohana::config('app.android.version');
        $ret = array('status' => 0, 
                'versionCode' => $config['versionCode'], 
                'versionName' => $config['versionName'],
                'apkUrl'      => $config['apkUrl'],
            );

        echo json_encode($ret);
    }
}
